package com.lycos.ludrien.moteur.semantique;

import java.util.Map;

/** Classe principale */
public class MoteurSemantique {

	public static void main(String args[]) {
		SparqlClient sparqlClient = new SparqlClient("127.0.0.1:3030/space");
		String query = "ASK WHERE { ?s ?p ?o }";
		boolean serverIsUp = sparqlClient.ask(query);
		if (serverIsUp) {
			System.out.println("server UP");
			Iterable<Map<String, String>> iterable = RequeteSparql.getSynonymes(sparqlClient, "balade");
			  for (Map<String, String> elt : iterable){
                  System.out.println(elt.get("synonymes"));
          }
			
		} else {
			System.out.println("service DOWN");
		}
	}
}